package com.congee02.dbservlet.utils;

/**
 * 字符串校验工具类
 */
public final class StringValidationUtils {

    private StringValidationUtils() {}

    public static boolean isNotNullOrBlank(String s) {
        return s != null && ! s.isBlank();
    }
    
    public static boolean isNullOrBlank(String s) {
        return ! isNotNullOrBlank(s);
    }

    public static boolean isAnyNullOrBlank(String... ss) {
        for (String s : ss) {
            if (isNullOrBlank(s)) {
                return true;
            }
        }
        return false;
    }

}
